﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace LibPlug.Model
{
    /// <summary>
    /// 插件信息特性
    /// </summary>
    public class PluginsInfoAttribute : Attribute
    {
        public PluginsInfoAttribute() { }
        /// <summary>
        /// 初始化插件信息
        /// </summary>
        /// <param name="PlugName">插件名称</param>
        /// <param name="PlugAuthor">插件作者</param>
        /// <param name="PlugDescript">插件描述</param>
        /// <param name="PlugVersion">插件版本</param>
        public PluginsInfoAttribute(string PlugName,string PlugAuthor,string PlugDescript,int PlugVersion)
        {
            _PlugName = PlugName;
            _PlugAuthor = PlugAuthor;
            _PlugDescript = PlugDescript;
            _PlugVersion = PlugVersion;
        }

        private string _PlugName;
        private string _PlugAuthor;
        private string _PlugDescript;
        private int _PlugVersion;

        /// <summary>
        /// 插件名称
        /// </summary>
        public string PlugName { get { return _PlugName; } }
        /// <summary>
        /// 插件作者
        /// </summary>
        public string PlugAuthor { get { return _PlugAuthor; } }
        /// <summary>
        /// 插件描述
        /// </summary>
        public string PlugDescript { get { return _PlugDescript; } }
        /// <summary>
        /// 插件版本
        /// </summary>
        public int PlugVersion { get { return _PlugVersion; } }
    }
}
